Add CAN Layer2 Signal Based Logging example#4
Open
em1064 wants to merge 1 commit intoProemion:mainfrom
Open
Conversation
Adds a new example demonstrating the Proemion CAN Layer 2 library (V0.1.0.1) for signal-based logging using a delta-anchor threshold strategy. Includes the compiled library, a complete self-contained project archive (SalesDemo), and full documentation covering FB_CAN_Setup, FB_CAN_Rx_Signal_REAL, FB_DeltaAnchorTrigger, and FB_SignalTriggeredLogger. Also updates .gitignore and .gitattributes to support the .compiled-library file type.
Collaborator
VKlueber
requested changes
Apr 14, 2026
|
|
||
| Instead of logging every CAN frame at a fixed rate, the library's `FB_DeltaAnchorTrigger` only fires when a signal deviates from its last logged value (the "anchor") by more than a configurable `Delta`. An optional `MinTime_ms` debounces fast oscillations around a threshold; `MaxTime_ms` forces a log entry even if the signal is stable — ensuring heartbeat records. | ||
|
|
||
| The `SalesDemo_Example` project shows this pattern across multiple CAN networks and signal types on a **Proemion CANlink mobile 10000** device. |
Collaborator
There was a problem hiding this comment.
I propose to rename the Project to CANLayer2_Example.
|
|
||
| | File | Description | | ||
| |------|-------------| | ||
| | `Proemion_CAN.compiled-library` | Compiled Proemion CAN Layer 2 library (V0.1.0.1). Install into Codesys before opening the example. | |
Collaborator
|
|
||
| --- | ||
|
|
||
| ## Installing the Library |
Collaborator
There was a problem hiding this comment.
Since the way how libraries are being installed at CODESYS might change in the future I propose to refer to the way how libraries are installed in CODESYS.
|
|
||
| --- | ||
|
|
||
| ## Function Blocks |
Collaborator
There was a problem hiding this comment.
Since the function block documentation is included in the library I propose to not have it also here. This would require to maintain it at both places.
Collaborator
|
I was able to compile the project 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Adds a new example demonstrating the Proemion CAN Layer 2 library
(V0.1.0.1) for signal-based logging using a delta-anchor threshold
strategy. Includes the compiled library, a complete self-contained
project archive (SalesDemo), and full documentation covering
FB_CAN_Setup, FB_CAN_Rx_Signal_REAL, FB_DeltaAnchorTrigger, and
FB_SignalTriggeredLogger.
Also updates .gitignore and .gitattributes to support the
.compiled-library file type.